package ldh.msg.helper;

public class MsgUtil {
	public synchronized static int getStringCnt(String str, String findStr) {
		int lastIndex = 0;
		int count =0;
		while(lastIndex != -1){
		       lastIndex = str.indexOf(findStr,lastIndex + 1);
		       if( lastIndex != -1){
		             count ++;
		      }
		}
		return count;
	}
}
